<?php

namespace app\admin\controller;
use app\admin\logic\GoodsLogic;
use think\AjaxPage;
use think\Page;
use think\Db;

class Selfdom extends Base {
    /**
     *  商品管理
     */
    public function domGoods(){
        /*TP3 TP5语法都通用*/
//        $where['user_name'] = 'admin';
//        $aaa = Db::name('admin')->where($where)->find();
//        echo $aaa['email'];
//        exit;
        
        $GoodsLogic = new GoodsLogic();
        $categoryList = $GoodsLogic->getSortCategory();//所有分类
//        var_dump($categoryList);
//        exit;
        $this->assign('categoryList',$categoryList);
       
        $brandList = $GoodsLogic->getSortBrands();//所有品牌
//        var_dump($brandList);
//        exit;
        $this->assign('brandList',$brandList);
        return $this->fetch();
    }
    
    
    /**
     *  定制主题
     */
    public function domTheme(){
        return $this->fetch();
    }
    
    
    /**
     *  定制香型
     */
    public function domOdor(){
        return $this->fetch();
    }
    
    
    /**
     *  个性案例
     */
    public function domCase(){
        return $this->fetch();
    }
    
    
    /**
     *  活动管理
     */
    public function domActivity(){
        return $this->fetch();
    }
    
}